package com.contest.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.contest.entity.UserInfo;
import com.contest.entity.WarSituationInfo;

import java.util.List;
import java.util.Map;

/**
 * 
 *
 * @author yfl
 * @email 617823298@qq.com
 * @date 2017-12-20 16:26:23
 */
public interface WarSituationInfoService extends IService<WarSituationInfo> {

    List<WarSituationInfo> selectListByPage(Map<String,Object> map);

    /**
     * 系统判定战局
     * @param warSituationInfo
     * @return
     */
    boolean updateResult(WarSituationInfo warSituationInfo);

    int selectByPageCount(Map<String,Object> map);

    /**
     * 用户判定战局
     * @param userInfo
     * @param warId
     * @param result
     * @param pic
     * @return
     */
    boolean updateResultByUser(UserInfo userInfo, String warId, Integer result, String pic);
}
